Skip to content

Fix #14782: Partially or fully missing valuetype info for auto declarations #8599

Open
ludviggunne wants to merge 2 commits into
cppcheck-opensource:mainfrom
ludviggunne:14782-prepared
Open

Fix #14782: Partially or fully missing valuetype info for auto declarations #8599
ludviggunne wants to merge 2 commits into
cppcheck-opensource:mainfrom
ludviggunne:14782-prepared

Conversation

@ludviggunne
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/symboldatabase.cpp Fixed
Comment thread lib/symboldatabase.cpp Fixed
Comment thread lib/symboldatabase.cpp Fixed
Comment thread lib/symboldatabase.cpp Fixed
Comment thread lib/symboldatabase.cpp Outdated
Comment thread lib/symboldatabase.cpp
else if (typeTok->str() == "*")
pointer++;
else if (typeTok->str() == "const")
constness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
else if (typeTok->str() == "*")
pointer++;
else if (typeTok->str() == "const")
constness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
else if (typeTok->str() == "*")
pointer++;
else if (typeTok->str() == "const")
constness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
else if (typeTok->str() == "*")
pointer++;
else if (typeTok->str() == "const")
constness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
else if (typeTok->str() == "const")
constness |= 1 << pointer;
else if (typeTok->str() == "volatile")
volatileness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
varVt->volatileness |= volatileness;

if (Token::simpleMatch(typeTok->previous(), "const auto"))
varVt->constness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
varVt->constness |= 1 << pointer;

if (Token::simpleMatch(typeTok->previous(), "volatile auto"))
varVt->volatileness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
varVt->constness |= 1 << pointer;

if (Token::simpleMatch(typeTok->previous(), "volatile auto"))
varVt->volatileness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
varVt->constness |= 1 << pointer;

if (Token::simpleMatch(typeTok->previous(), "volatile auto"))
varVt->volatileness |= 1 << pointer;
Comment thread lib/symboldatabase.cpp
varVt->constness |= 1 << pointer;

if (Token::simpleMatch(typeTok->previous(), "volatile auto"))
varVt->volatileness |= 1 << pointer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants